<template>
  <div>
    <div class="activation-form">
      <div>
        {{ checkResult}}
      </div>
    </div>
  </div>
</template>
<script>

import { outExamineKey } from "@/api/offer/creativeaudit"

export default {
  name: 'examine',
  data() {
    return {
      key: null,
      checkResult: "",
    }
  },
  created() {
    this.key = this.$route.query.key;
  },
  mounted() {
    let self = this;
    if(self.key != null) {
      setTimeout(()=>{
        outExamineKey({key: self.key}).then(res=>{
          if(res.data.success){
            self.$router.push({path:'/inspect',query:{key: self.key}});
          } else {
            self.checkResult = res.data.msg;
          }
        });
      },50);
    }
  },
  methods: {
  }
}
</script>
<style lang="scss">
.activation-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-size: 16px;
  margin-top: 50px;
  box-shadow: 2px 2px 19px 2px rgba(0, 0, 0, 0.18);
  padding: 15px;;
}

.title {
  width: 100%;
  font-family: Montserrat;
  font-size: 25px;
  font-weight: 800;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #51abe0;
  margin: 0 auto;
  margin-bottom: 15px;
}

a {
  color: #00a2ff;
}
</style>
